package prototypes;

/**
 * Interface to a service.
 * 
 * @author Matthew Johnstone <mjohnstone357@gmail.com>
 * 
 */
public interface Service {

	/**
	 * Method to hand a packet to the Service.
	 * 
	 * @param p
	 *            the packet
	 * @return true if the packet is successfully handled, or false if the
	 *         Service's queue is full (in which case, the packet is simply
	 *         dropped).
	 */
	public boolean handlePacket(Packet p);
	
	public void setState(NodeState state);
	
	public void initialise();

}
